textview: inline a function
authorSébastien Wilmet <swilmet@gnome.org>
Wed, 9 Apr 2014 14:53:14 +0000 (16:53 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Apr 2014 21:04:11 +0000 (14:04 -0700)
gtk_text_view_move_cursor_internal() was exactly the same as
gtk_text_view_move_cursor(), and was called only in the latter function.

https://bugzilla.gnome.org/show_bug.cgi?id=727908

gtk/gtktextview.c

index 3194357a79f1849e109c9224fb97a341bfd7383d..318818e9032b3ad4eeccc5f6a435aaa81c9e66da 100644 (file)
@@ -5876,10 +5876,10 @@ move_cursor (GtkTextView       *text_view,
 }
 
 static void
-gtk_text_view_move_cursor_internal (GtkTextView     *text_view,
-                                    GtkMovementStep  step,
-                                    gint             count,
-                                    gboolean         extend_selection)
+gtk_text_view_move_cursor (GtkTextView     *text_view,
+                           GtkMovementStep  step,
+                           gint             count,
+                           gboolean         extend_selection)
 {
   GtkTextViewPrivate *priv;
   GtkTextIter insert;
@@ -6122,15 +6122,6 @@ gtk_text_view_move_cursor_internal (GtkTextView     *text_view,
   gtk_text_view_pend_cursor_blink (text_view);
 }
 
-static void
-gtk_text_view_move_cursor (GtkTextView     *text_view,
-                           GtkMovementStep  step,
-                           gint             count,
-                           gboolean         extend_selection)
-{
-  gtk_text_view_move_cursor_internal (text_view, step, count, extend_selection);
-}
-
 static void
 gtk_text_view_move_viewport (GtkTextView     *text_view,
                              GtkScrollStep    step,